package cc.taofoo.Design.Adapter;

public class HybridDogBirdAdapter implements Robot {
    private Dog dog;
    private Bird bird;

    public HybridDogBirdAdapter() {
        dog = new Dog();
        bird = new Bird();
    }

    @Override
    public void cry() {
        System.out.println("机器人模仿");
        bird.tweedle();
    }

    @Override
    public void move() {
        System.out.println("机器人模仿");
        dog.run();
    }
}
